package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.StrategyCatalog;
import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.domain.TravelCommend;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.StrategyCommentQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 评论service
 */
public interface IStrategyCommentService {
    void save(StrategyComment strategyComment,String[] imgs);
    void update(StrategyComment strategyComment);
    void delete(Long id);
    StrategyComment get(Long id);
    List<StrategyComment> listAll();

    /**
     * 查询某个攻略的评论
     * @param qo : 攻略的id
     * @return
     */
    PageInfo<StrategyComment> queryCommentByStrategyId(QueryObject qo);

    /**
     * 获取常用标签
     * @param qo : 用pageSize来确定数量
     * @return
     */
    PageInfo getTags(QueryObject qo);

    /**
     * 获取某个用户的comments点评
     *
     * @param qo
     * @return
     */
    PageInfo queryCommentsByUserId(StrategyCommentQueryObject qo);

    StrategyComment getCommentById(Long id);
}
